<?php
/**
 * @Name: rbac.php
 * @Author: yashuai
 * @desc: 权限路由，需要登录
 */


use Illuminate\Support\Facades\Route;

Route::namespace('Org')->group(function () {
    Route::get('/department', 'DepartmentController@index');
    Route::post('/department/create', 'DepartmentController@create');
    Route::post('/department/update', 'DepartmentController@update');
    Route::post('/department/delete', 'DepartmentController@delete');

    Route::get('/staff', 'StaffController@index');
    Route::post('/staff/create', 'StaffController@create');
    Route::post('/staff/update', 'StaffController@update');
    Route::post('/staff/delete', 'StaffController@delete');
    Route::get('/staff/get-relation-user', 'StaffController@relationUserList');
    Route::post('/staff/relation-new-user', 'StaffController@relationNewUser');
    Route::post('/staff/relation-table-user', 'StaffController@relationTableUser');

});
